<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>General SQL Parser C/C++ Version: C:/prg/gsp_c/core/gsp_sqlparser.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="gudusoftware_190_120.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">General SQL Parser C/C++ Version
   </div>
   <div id="projectbrief">It&#39;s a library provides an in-depth and detailed analysis of SQL scripts for various databases</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_4270bfced15e0e73154b13468c7c9ad9.html">core</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">gsp_sqlparser.c File Reference<div class="ingroups"><a class="el" href="group__gsp__common__structrue__function.html">Some mostly used data structure and functions.</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Core functions create/free sql parser instance,parse input sql script and generate sql parser tree.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a804ebef02ad58dcf08aa29f0adc5aa3a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gsp__sqlparser_8c.html#a804ebef02ad58dcf08aa29f0adc5aa3a">gsp_sqlparser_read_sql_from_file</a> (<a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *sqlparser, FILE *in)</td></tr>
<tr class="separator:a804ebef02ad58dcf08aa29f0adc5aa3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a869bb4a79714a81bd47fa1313bc50994"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gsp__sqlparser_8c.html#a869bb4a79714a81bd47fa1313bc50994">gsp_errmsg</a> (<a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *sqlparser)</td></tr>
<tr class="separator:a869bb4a79714a81bd47fa1313bc50994"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b285c36ca503c27fe57669c270a2fbb"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gsp__sqlparser_8c.html#a7b285c36ca503c27fe57669c270a2fbb">gsp_parser_create</a> (<a class="el" href="gsp__base_8h.html#a5be3eb4b6f4ff089dbd3951ff1329e48">gsp_dbvendor</a> dbVendor, <a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> **parser)</td></tr>
<tr class="separator:a7b285c36ca503c27fe57669c270a2fbb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ba5e924e9494957794fc6b81522cb92"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gsp__sqlparser_8c.html#a8ba5e924e9494957794fc6b81522cb92">gsp_parser_free</a> (<a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *sqlparser)</td></tr>
<tr class="separator:a8ba5e924e9494957794fc6b81522cb92"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac693c6aa0c0021672ae1cade5e018524"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gsp__sqlparser_8c.html#ac693c6aa0c0021672ae1cade5e018524">gsp_tokenize</a> (<a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *sqlparser, char *sql)</td></tr>
<tr class="separator:ac693c6aa0c0021672ae1cade5e018524"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acacad30b49e108cd684f253763f4124f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gsp__sqlparser_8c.html#acacad30b49e108cd684f253763f4124f">gsp_tokenize_file</a> (<a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *sqlparser, FILE *sqlfile)</td></tr>
<tr class="separator:acacad30b49e108cd684f253763f4124f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca0bcbe8faf7160f9b88a9d6719668ea"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gsp__sqlparser_8c.html#aca0bcbe8faf7160f9b88a9d6719668ea">gsp_check_syntax</a> (<a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *sqlparser, char *sql)</td></tr>
<tr class="separator:aca0bcbe8faf7160f9b88a9d6719668ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6ac3e2ad188f12766f8d543b819c3db"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gsp__sqlparser_8c.html#ab6ac3e2ad188f12766f8d543b819c3db">gsp_check_syntax_file</a> (<a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *sqlparser, FILE *sqlfile)</td></tr>
<tr class="separator:ab6ac3e2ad188f12766f8d543b819c3db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9128ca964a8fad19141d1def3be6c70b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgsp__sourcetoken.html">gsp_sourcetoken</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gsp__sqlparser_8c.html#a9128ca964a8fad19141d1def3be6c70b">gsp_token_list</a> (<a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *sqlparser)</td></tr>
<tr class="separator:a9128ca964a8fad19141d1def3be6c70b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53179d496a564064d64a2ab89b782411"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gsp__sqlparser_8c.html#a53179d496a564064d64a2ab89b782411">gsp_separate_statements</a> (<a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *sqlparser, char *sql)</td></tr>
<tr class="separator:a53179d496a564064d64a2ab89b782411"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a958d84599304bbaba94f962d8cb240fe"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gsp__sqlparser_8c.html#a958d84599304bbaba94f962d8cb240fe">gsp_separate_sqlstatements_file</a> (<a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *sqlparser, FILE *sqlfile)</td></tr>
<tr class="separator:a958d84599304bbaba94f962d8cb240fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Core functions create/free sql parser instance,parse input sql script and generate sql parser tree. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="aca0bcbe8faf7160f9b88a9d6719668ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca0bcbe8faf7160f9b88a9d6719668ea">&#9670;&nbsp;</a></span>gsp_check_syntax()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gsp_check_syntax </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *&#160;</td>
          <td class="paramname"><em>sqlparser</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>sql</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Offline sql syntax validation, parse tree nodes are created if no syntax error detected.</p>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>means syntax of input sql is correct. </td></tr>
    <tr><td class="paramname">n</td><td>n&gt;0, means number of syntax errors detected.</td></tr>
  </table>
  </dd>
</dl>
<p>check error message for detailed information. </p><dl class="section see"><dt>See also</dt><dd>gsp_sqlparser_get_number_of_statement(gsp_sqlparser *), gsp_sqlparser_get_statements(gsp_sqlparser *), <a class="el" href="gsp__sqlparser_8c.html#a869bb4a79714a81bd47fa1313bc50994">gsp_errmsg(gsp_sqlparser *)</a>, </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sql</td><td>Input sql script, utf-8 encoded </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ab6ac3e2ad188f12766f8d543b819c3db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6ac3e2ad188f12766f8d543b819c3db">&#9670;&nbsp;</a></span>gsp_check_syntax_file()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gsp_check_syntax_file </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *&#160;</td>
          <td class="paramname"><em>sqlparser</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>sqlfile</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Same as gsp_check_syntax(gsp_sqlparser *sqlparser,const char *sql) but use sql file as input. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sqlfile</td><td>SQL file, multibyte character encoded </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a869bb4a79714a81bd47fa1313bc50994"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a869bb4a79714a81bd47fa1313bc50994">&#9670;&nbsp;</a></span>gsp_errmsg()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* gsp_errmsg </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *&#160;</td>
          <td class="paramname"><em>sqlparser</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Fetch error message if there are any syntax error in sql script. </p><dl class="section return"><dt>Returns</dt><dd>error message </dd></dl>

</div>
</div>
<a id="a7b285c36ca503c27fe57669c270a2fbb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b285c36ca503c27fe57669c270a2fbb">&#9670;&nbsp;</a></span>gsp_parser_create()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gsp_parser_create </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="gsp__base_8h.html#a5be3eb4b6f4ff089dbd3951ff1329e48">gsp_dbvendor</a>&#160;</td>
          <td class="paramname"><em>dbVendor</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> **&#160;</td>
          <td class="paramname"><em>parser</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create an new instance of sql parser, this is the first function call before do any real job.</p>
<p><a class="el" href="gsp__sqlparser_8c.html#a8ba5e924e9494957794fc6b81522cb92">gsp_parser_free(gsp_sqlparser *)</a> must be called to free all resource if this sql parser not used any longer. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dbVendor</td><td>database vendor name </td></tr>
    <tr><td class="paramname">**parser</td><td>new instance of sql parser</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>return 0 if parser created successfully. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="gsp__sqlparser_8c.html#a8ba5e924e9494957794fc6b81522cb92">gsp_parser_free(gsp_sqlparser *)</a> </dd></dl>

</div>
</div>
<a id="a8ba5e924e9494957794fc6b81522cb92"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8ba5e924e9494957794fc6b81522cb92">&#9670;&nbsp;</a></span>gsp_parser_free()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gsp_parser_free </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *&#160;</td>
          <td class="paramname"><em>sqlparser</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Free an instance of sql parser created by gsp_parser_create and deallocate memory used internally. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sqlparser</td><td>sql parser need to be freed. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a958d84599304bbaba94f962d8cb240fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a958d84599304bbaba94f962d8cb240fe">&#9670;&nbsp;</a></span>gsp_separate_sqlstatements_file()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gsp_separate_sqlstatements_file </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *&#160;</td>
          <td class="paramname"><em>sqlparser</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>sqlfile</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Same as gsp_separate_statements(gsp_sqlparser *sqlparser,const char *sql) but use sql file as input. </p>

</div>
</div>
<a id="a53179d496a564064d64a2ab89b782411"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53179d496a564064d64a2ab89b782411">&#9670;&nbsp;</a></span>gsp_separate_statements()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gsp_separate_statements </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *&#160;</td>
          <td class="paramname"><em>sqlparser</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>sql</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Separate a SQL script into individual statements with statement type such as select, insert and etc. No syntax checked was performanced, no parse tree was created.</p>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>means success </td></tr>
    <tr><td class="paramname">n</td><td>n&gt;0 means total number of errors found during separate statements.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="structgsp__sqlparser.html#a87a3c9a11e14e184231edaf297dabe3c">gsp_sqlparser.pStatement</a> <a class="el" href="structgsp__sqlparser.html#a18ac14e7a4cf1fda23943a51a338f7ec">gsp_sqlparser.nStatement</a> </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sql</td><td>SQL script,utf-8 encoded </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a804ebef02ad58dcf08aa29f0adc5aa3a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a804ebef02ad58dcf08aa29f0adc5aa3a">&#9670;&nbsp;</a></span>gsp_sqlparser_read_sql_from_file()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gsp_sqlparser_read_sql_from_file </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *&#160;</td>
          <td class="paramname"><em>sqlparser</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>in</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read sql from file to sqlparser-&gt;sqltext.</p>
<dl class="section return"><dt>Returns</dt><dd>number of bytes readin </dd></dl>

</div>
</div>
<a id="a9128ca964a8fad19141d1def3be6c70b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9128ca964a8fad19141d1def3be6c70b">&#9670;&nbsp;</a></span>gsp_token_list()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgsp__sourcetoken.html">gsp_sourcetoken</a>* gsp_token_list </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *&#160;</td>
          <td class="paramname"><em>sqlparser</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>All source tokens are located in a one continuously memory area. You can iterate all source tokens from start token by just increasing pointer like pToken++</p>
<dl class="section return"><dt>Returns</dt><dd>Memory pointer of the first token. </dd></dl>

</div>
</div>
<a id="ac693c6aa0c0021672ae1cade5e018524"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac693c6aa0c0021672ae1cade5e018524">&#9670;&nbsp;</a></span>gsp_tokenize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gsp_tokenize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *&#160;</td>
          <td class="paramname"><em>sqlparser</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>sql</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Scan input sql, lexer generates a list of <a class="el" href="structgsp__sourcetoken.html">gsp_sourcetoken</a>. All source tokens are located in a one continuously memory area. You can iterate all source tokens from start token by just increasing pointer like pToken++</p>
<p>sql syntax was not checked, no parse tree was created.</p>
<dl class="section return"><dt>Returns</dt><dd>always return 0</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="gsp__sqlparser_8c.html#a9128ca964a8fad19141d1def3be6c70b">gsp_token_list(gsp_sqlparser *)</a>, </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sql</td><td>SQL script, utf-8 encoded </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="acacad30b49e108cd684f253763f4124f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acacad30b49e108cd684f253763f4124f">&#9670;&nbsp;</a></span>gsp_tokenize_file()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gsp_tokenize_file </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structgsp__sqlparser.html">gsp_sqlparser</a> *&#160;</td>
          <td class="paramname"><em>sqlparser</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>sqlfile</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Same as gsp_tokenize(gsp_sqlparser *sqlparser,const char *sql) but use sql file as input. </p><dl class="section return"><dt>Returns</dt><dd>always return 0 </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 13 2017 11:49:36 for General SQL Parser C/C++ Version by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
